export const watchers = []
export default class Watcher {
  constructor(vm, attValue, callback) {
    this.vm = vm
    this.name = attValue
    this.callback = callback
    window.$watcher = this
    vm[this.name]
    window.$watcher = null
  }
  update() {
    this.callback(this.vm[this.name])
  }
}
